package com.example.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

@Entity
@Table(name = "TB_MD_RELEASE_NOTE")
@SequenceGenerator(name = "TB_MD_RELEASE_NOTE_OBJ_ID_SEQ", sequenceName = "TB_MD_RELEASE_NOTE_OBJ_ID_SEQ", allocationSize = 1, initialValue = 24)
public class ReleaseNote {

    @Id
    @Column(name = "OBJ_ID", unique = true, nullable = false)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "TB_MD_RELEASE_NOTE_OBJ_ID_SEQ")
    // @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long objId;

    @Column(name = "\"VERSION\"")
    private String version;

    @Column(name = "\"CONTENT\"")
    @Type(type = "text")
    private String content;

    @Column(name = "PUBLISH_DATE")
    private Timestamp publishDate;

    public Long getObjId() {
        return objId;
    }

    public void setObjId(Long objId) {
        this.objId = objId;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Timestamp getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Timestamp publishDate) {
        this.publishDate = publishDate;
    }

    @Override
    public String toString() {
        return "MDReleaseNote [objId=" + objId + ", version=" + version + ", content=" + content + ", publishDate="
                + publishDate + "]";
    }

}
